package com.project.service.impl;

import com.project.bean.ReturnPostBean;
import com.project.mapper.IReturnPostMapper;
import com.project.service.IReturnPostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ReturnPostServiceImpl implements IReturnPostService {
    @Autowired
    private IReturnPostMapper mapper;

    @Override
    public void add(ReturnPostBean returnPostBean) {
        mapper.add(returnPostBean);
    }

    @Override
    public List<ReturnPostBean> findByMainPost(int mainPostId) {
        return mapper.findByMainPost(mainPostId);
    }
}
